package cn.dlc.com.account.dao;

import cn.dlc.com.account.entity.Account;
import org.springframework.data.jpa.repository.JpaRepository;

import java.math.BigDecimal;

/**
 * @author 邓立川
 * @date 2021/1/19 9:41
 * @desc 添加当前类的描述信息
 */
public interface AccountDao extends JpaRepository<Account,Long> {

    /**
     * 根据账号编码获取账号信息
     * @param accountNo
     * @return
     */
    Account findByAccountNoAndAccountBalanceGreaterThanEqual(String accountNo, BigDecimal amount);

    Account findByAccountNo(String accountNo);

}
